package simpleFactory;

import java.util.Scanner;

public class FactoryClient {
    /*@author只需要把数、期望操作一些用户端输入放在Client端里即可，即便是增加了操作，也不用在客户端再增加任何东西
    * 已经实现了分离*/
    public static void main(String[] args) {
        double num1, num2;
        Scanner reader = new Scanner(System.in);
        num1 = reader.nextDouble();
        num2 = reader.nextDouble();
        SimpleFactoryTest test = new SimpleFactoryTest(num1,num2);
        System.out.println(test.Calculator("+").ops());
    }
}
